#include <stdio.h>
int CalStrLen(char *s)
{
    int count=0;
    while(s[count]!='\0')
    {
        count++;
    }
    return count;

}
int IsEqual(char *s1,char *s2)
{
    if(CalStrLen(s1)!=CalStrLen(s2))
    return 0;
    
    while(*s1!='\0'&&*s2!='\0')
    {
        if(*s1==*s2)
        {
            s1++;
            s2++;
        }
        else return 0;
    }
    return 1;
}
void StrCopy(char *dest,char *source)
{
    while(*source!='\0')
    {
        *dest=*source;
        dest++;
        source++;
    }
    *dest='\0';
}
int main()
{
    char a[10]={'h','e','l','l','o'};
    printf("%s\n",a);
    // char b[10]="helloworldsss";
    // printf("%s\n",b);     //Output "helloworld"

    char s1[]="hello";
    char s2[]="hello";

    printf("%s\n",s1);
    printf("s len:%d\n",CalStrLen(s1));
    printf("%d\n",IsEqual(s1,s2));
    char dest[10];
    StrCopy(dest,s1);
    printf("%s\n",dest);






    return 0;


}